package com.droidwatcher.JsonEntity;

import com.alibaba.fastjson.annotation.JSONField;
import com.droidwatcher.lib.Call;
import com.droidwatcher.lib.IMessageBody;
import com.droidwatcher.util.AXLog;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/1/30.
 */

public class CallJsonObj extends JsonBaseObj {
    @JSONField(name = "data")
    Data data ;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data{
        @JSONField(name = "call_list")
        List<Call> callEntityList  = new ArrayList<>();

        public List<Call> getCallEntityList() {
            return callEntityList;
        }

        public void setCallEntityList(List<IMessageBody> callEntityList) {
            for (int i = 0; i < callEntityList.size(); i++) {
                Call call = (Call) callEntityList.get(i);
                this.callEntityList.add(call);
            }
        }
    }




}
